<template>
    <div>
      <button @click="handle">点我handle向上传递</button>
    </div>
</template>
<script>
  import emitter from '../../mixins/emitter'

  export default {
    mixins: [emitter],
    name: 'componentB',
    inject: ['name'],
    data() {
      return {
        notices: [] // 维护通知list
      }
    },
    methods: {
      handle(){
        this.dispatch('componentA', 'on-msg', 'hahha')
      }
    }
  }
</script>
<style scoped rel="stylesheet/stylus">

</style>
